<%--
  Created by IntelliJ IDEA.
  User: LJS
  Date: 2018/11/15
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page trimDirectiveWhitespaces="true"%>
<%@page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>主播艺人资料管理</title>
    <jsp:include page="resource.jsp"/>
</head>
<body>
<jsp:include page="common.jsp"/>

<!-- Start #content -->
<div id="content">
    <!-- Start .content-wrapper -->
    <div class="content-wrapper">
        <!-- Start .row -->
        <div class="row">
            <!-- Start .page-header -->
            <div class="col-lg-12 heading">
                <h1 class="page-header"><i class="im-camera"></i> 主播艺人资料管理</h1>
            </div>
            <!-- End .page-header -->
        </div>
        <!-- End .row -->
        <!-- Start .outlet -->
        <div class="outlet">
            <!-- Page start here ( usual with .row ) -->
            <div class="row printable">
                <!-- col-lg-12 start here -->
                <div class="col-lg-12">
                    <!-- Start .panel -->
                    <div class="panel panel-default plain">
                        <div class="panel-heading white-bg"></div>
                        <div class="panel-body">
                            <!-- Start .invoice -->
                            <div class="invoice">
                                <a href="<%=basePath%>anchor/all/list.do" class="mb5">返回</a>
                                <a href="javacript:void(0);" class="pull-right mb5" onclick="editable()"><i class="ec-pencil"></i> 修改</a>
                                <form class="form-horizontal" id="invoice-form" action="<%=basePath%>anchor/update.do" method="post">
                                    <input type="hidden" id="anchorId" name="anchorId" value="${anchorInfo.anchorId}"/>
                                    <table class="table table-bordered">
                                        <tr>
                                            <td width="15%">
                                                <label for="anchorNo" class="control-label">主播账号</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="anchorNo" name="anchorNo" value="${anchorInfo.anchorNo}" disabled="disabled">
                                            </td>
                                            <td width="15%">
                                                <label for="anchorName" class="control-label">主播姓名</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="anchorName" name="anchorName" value="${anchorInfo.anchorName}" disabled="disabled">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                <label for="anchorPassword" class="control-label">主播密码</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="anchorPassword" name="anchorPassword"
                                                       value="${anchorInfo.anchorPassword}" disabled="disabled">
                                            </td>
                                            <td width="15%">
                                                <label for="anchorSex" class="control-label">主播性别</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control"
                                                        id="anchorSex" name="anchorSex" disabled="disabled">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${sexList}" var="sex">
                                                        <c:if test="${sex.dictId eq anchorInfo.anchorSex}">
                                                            <option value="${sex.dictId}" selected>${sex.dictItemName}</option>
                                                        </c:if>
                                                        <c:if test="${sex.dictId ne anchorInfo.anchorSex}">
                                                            <option value="${sex.dictId}">${sex.dictItemName}</option>
                                                        </c:if>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                <label for="anchorBirthday" class="control-label">出生日期</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control datetime-picker2" maxlength="20"
                                                       id="anchorBirthday" name="anchorBirthday"
                                                       value="<fmt:formatDate value="${anchorInfo.anchorBirthday}" pattern="yyyy-MM-dd"/>"
                                                       disabled="disabled">
                                            </td>
                                            <td width="15%">
                                                <label for="anchorIdCard" class="control-label">身份证号</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="anchorIdCard" name="anchorIdCard"
                                                       value="${anchorInfo.anchorIdCard}"
                                                       disabled="disabled">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                <label for="anchorType" class="control-label">主播类型</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control" id="anchorType" name="anchorType" disabled="disabled">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${anchorTypeList}" var="type">
                                                        <c:if test="${type.dictId eq anchorInfo.anchorType}">
                                                            <option value="${type.dictId}" selected>${type.dictItemName}</option>
                                                        </c:if>
                                                        <c:if test="${type.dictId ne anchorInfo.anchorType}">
                                                            <option value="${type.dictId}">${type.dictItemName}</option>
                                                        </c:if>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                            <td width="15%">
                                                <label for="anchorLevel" class="control-label">主播等级</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control"
                                                        id="anchorLevel" name="anchorLevel" disabled="disabled">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${anchorLevelList}" var="anchorlevel">
                                                        <c:if test="${anchorlevel.dictId eq anchorInfo.anchorLevel}">
                                                            <option value="${anchorlevel.dictId}" selected>${anchorlevel.dictItemName}</option>
                                                        </c:if>
                                                        <c:if test="${anchorlevel.dictId ne anchorInfo.anchorLevel}">
                                                            <option value="${anchorlevel.dictId}">${anchorlevel.dictItemName}</option>
                                                        </c:if>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                <label for="anchorStatus" class="control-label">主播状态</label>
                                            </td>
                                            <td width="35%">
                                                <select class="form-control"
                                                        id="anchorStatus" name="anchorStatus" disabled="disabled">
                                                    <option value="">--请选择--</option>
                                                    <c:forEach items="${anchorStatusList}" var="status">
                                                        <c:if test="${status.dictId eq anchorInfo.anchorStatus}">
                                                            <option value="${status.dictId}" selected>${status.dictItemName}</option>
                                                        </c:if>
                                                        <c:if test="${status.dictId ne anchorInfo.anchorStatus}">
                                                            <option value="${status.dictId}">${status.dictItemName}</option>
                                                        </c:if>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                            <td width="15%">
                                                <label for="staffNo" class="control-label">负责人工号</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffNo" name="staffNo" value="${anchorInfo.staffNo}" disabled="disabled">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="15%">
                                                <label for="staffName" class="control-label">负责人姓名</label>
                                            </td>
                                            <td width="35%">
                                                <input type="text" class="form-control limitInput" maxlength="20"
                                                       id="staffName" name="staffName" value="${anchorInfo.staffName}"
                                                       disabled="disabled">
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="form-group">
                                        <input type="submit" class="btn btn-primary col-md-3 col-md-offset-4" value="保存" />
                                    </div>
                                </form>
                            </div>
                            <!-- End .invoice -->
                        </div>
                    </div>
                    <!-- End .panel -->
                </div>
                <!-- col-lg-12 end here -->
            </div>
            <!-- Page End here -->
        </div>
        <!-- End .outlet -->
    </div>
    <!-- End .content-wrapper -->
    <div class="clearfix"></div>
</div>
<!-- End #content -->
</body>
</html>
